package com.imooc.module.reponse;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class QueryDateMetaResponse extends Response<QueryDateMetaResponse.Table> {

    private Table table;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Table{
        private List<DateView> items;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class DateView {
        /**
         * 名称
         */
        private String name;

        /**
         * 全称
         */
        private String fullName;

        /**
         * 是否可点击
         */
        private Boolean clickAble;

        private Params params;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Params{
        /**
         * 开始时间
         */
        private String startDate;
        /**
         * 结束时间
         */
        private String endDate;
        /**
         *
         */
        private Integer timeType;
    }

}
